﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApl.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class SosConeTypeController : ControllerBase, ISosConeTypebll
    {

        public SosConeTypeController(ISosConeTypebll bll,ILogger<SosConeTypeController> logger)
        {
            Bll = bll;
            Logger = logger;
        }

        public ISosConeTypebll Bll { get; }
        public ILogger<SosConeTypeController> Logger { get; }

        /// <summary>
        /// /绑定理疗分类下拉框
        /// </summary>
        /// <returns>返回值受影响行数</returns>
        [HttpGet]
        public List<SosConeType> sosConeTypes()
        {
            try//异常处理
            {
                Logger.LogInformation("绑定信息");

                 return  Bll.sosConeTypes();

            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
